/*!
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/

.file-header {
  z-index: 1;
}

.file-header .file-path {
  height: 46px;
  padding: 9px 0;
  background-color: #eee;
}

.file-header .file-path .breadcrumb {
  font-size: 1rem;
  margin: 0;
  background-color: #eee;
  cursor: default;
}

.file-header .file-path .breadcrumb > .active {
  color: #888;
}

.file-header .file-path .breadcrumb-item + .breadcrumb-item::before {
  color: #aaa;
}

.file-header .file-operator {
  padding: 13px 20px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.file-viewport {
  margin: 0;
  padding: 0;
}

.file-list .file-list-item {
  background-color: #fff;
  border-bottom: 1px solid #e6e6e6;
  padding: 7px 20px;
  display: table;
  width: 100%;
  cursor: default;
  position: relative;
}

.file-list-striped .file-list-item:nth-of-type(odd) {
  background-color: #f5f5f5;
}

.file-list .file-list-item:hover {
  background-color: #f0f0f0 !important;
}

.file-list .file-list-item.active,
.file-list .file-list-item.active:hover {
  background-color: #dee2e6 !important;
}

.file-list-item > div {
  display: table-cell;
  vertical-align: middle;
  margin: 0;
}

.file-list-item > div.info {
  color: #aaa;
  text-align: right;
  width: 120px;
}

.file-list-item > div.check,
.file-list-item > div.type {
  width: 40px;
  vertical-align: middle;
}

.file-list-item > div.type {
  transform: translateY(2px);
}

.file-list-item > div.type .file-icon::before {
  border-top-color: #fff;
  border-right-color: #fff;
}

.file-list-item.active > div.type .file-icon::before,
.file-list-item:hover > div.type .file-icon::before {
  border-top-color: #f5f5f5;
  border-right-color: #f5f5f5;
}

.file-list-item > div.detail {
  width: auto;
}

.file-list-item > div.detail > .extras {
  margin-top: 0;
  overflow: hidden;
}

.file-list-item > div.detail > .extras > span {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  float: left;
  padding-top: 2px;
}

.file-list-item > div.detail .extras > span,
.file-list-item > div.detail .extras > span > a {
  color: #777;
}

.file-list-item > div.detail .extras > span + span::before {
  content: '·';
  margin: 0 10px;
  font-weight: bolder;
}

.file-list-item > div.detail a:hover {
  text-decoration: underline;
}

.upload-box {
  display: block;
  border: 1px dotted #ccc;
  border-radius: 2px;
  padding: 9px;
  color: #aaa;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  min-height: 37px;
  margin: 0;
}

.upload-box:hover {
  background-color: #eee;
}

.upload-box.active {
  background-color: #fff7c5;
}

.file-field.files .img-thumbnail {
  width: 100%;
  margin-right: 0;
}

.file-field.files .img-thumbnail span.status {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: rgba(66, 133, 244, 0.1);
  border-radius: 2px;
  text-align: right;
}

.file-field.files .img-thumbnail span.status > .zmdi {
  font-size: 1.231rem;
  margin-right: 8px;
  margin-top: 10px;
  font-weight: bold;
}

.aside-2tree li > a > .icon.flag {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 0 6px;
  cursor: help;
}

.file-list-striped .file-list-item:nth-of-type(odd) > div.type .file-icon::before {
  border-top-color: #f5f5f5;
  border-right-color: #f5f5f5;
}

.file-list-striped .file-list-item.active > div.type .file-icon::before {
  border-top-color: #dee2e6;
  border-right-color: #dee2e6;
}

.sharing-list .table th,
.sharing-list .table td {
  padding: 8px 6px;
}

.sharing-list .table th {
  border-top: 0 none;
  padding-top: 4px;
}

.sharing-list .table tbody {
  border-bottom: 1px solid #dee2e6;
}

.fop-action {
  position: absolute;
  right: 0;
  top: 7px;
  display: none;
}

.info .fop-action {
  top: 5px;
}

.fop-action > a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 16px;
  color: #777 !important;
}

.fop-action > a:hover {
  color: #0d5bdd !important;
}

.sharing-list .table tbody tr:hover > td > .fop-action,
.file-list-item:hover > div.info > .fop-action {
  display: block;
}

.sharing-list .table tbody tr:hover > td > .fop-action {
  top: 9px;
}

.sharing-list .table tbody tr:hover > td > .fop-action a {
  background-color: #f0f0f0;
}

.sharing-list .file-icon::before {
  border-top-color: #fff;
  border-right-color: #fff;
}
